import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Docs {
	@PrimaryGeneratedColumn('uuid')
	doc_id: string;

	@Column({ type: 'text', default: null, comment: '项目标识' })
	project_id: string;

	@Column({ type: 'text', default: null })
	message_type: string;

	@Column('text')
	doc_parent_id: string;

	@Column('text')
	doc_title: string;

	@Column('text')
	editer: string;

	@Column('text')
	creater: string;

	@Column('bigint')
	edit_time: number;

	@Column('bigint')
	creat_time: number;

	@Column('text')
	spaceid: string;

	@Column('text')
	type: string;

	@Column({ type: 'longtext', default: null, comment: '关联表' })
	tables: string;

	@Column({ type: 'longtext', default: null, comment: '请求参数' })
	params: string;

	@Column({ type: 'longtext', default: null, comment: '返回结果JSON字符串' })
	returns: string;

	@Column({ type: 'int', default: null, comment: '接口状态, 接口状态为null时，属于分类' })
	status: number;

	@Column({ type: 'text', default: null, comment: '相关者,文档更新时用于通知' })
	partners: string;
}